<div id="mimiamazonContent">

<{include file="db:`$mydirname`_header.html"}>

<{if !$xoops_isuser}>
  <noscript>
    <div class="maNotice"><{$smarty.const._MD_MINIAMAZON_JS_NOTICE}></div>
  </noscript>
<{/if}>

<{if !$edit}>
	<div style="text-align:center;">
		<form action="" method="post" name="f1">
		<{$smarty.const._MD_MINIAMAZON_ASIN}> 
		<input type="text" name="asin" value="<{$asin_no}>" maxlength="16" onkeydown="if(event.keyCode==13) return false;">
		<{if !$xoops_isuser}>
			<input type="button" value="<{$smarty.const._MD_MINIAMAZON_QUERY}>" onclick="f1.chk.value='<{$chker}>';submit();">
		<{else}>
			<input type="submit" value="<{$smarty.const._MD_MINIAMAZON_QUERY}>">
		<{/if}>
		<{if !$xoops_isuser}><input type="hidden" name="chk" value="maps"><{/if}>
		<input type="hidden" name="op" value="query">
		<{$gt}>
		</form>
	</div>
<{/if}>

<br /><br />

<{if !$newpost}>
  <{if !($error || $error2)}>
  <{*if $title || $creator || $manufacturer *}>
	<{if $requery}><div class="maRequery"><{$smarty.const._MD_MINIAMAZON_ABOUT_REQ}></div><{/if}>

	<form action="" method="post" name="f2">

	<table class="outer">
	<tr><th colspan="2">
		<{if $edit}>
			<{$smarty.const._EDIT}>
		<{else}>
			<{$smarty.const._MD_MINIAMAZON_REGI}>
		<{/if}>
	</th></tr>
	<tr><td class="head"><{$smarty.const._MD_MINIAMAZON_ASIN}></td><td class="even"><{$asin_no}></td></tr>
	<tr><td class="head"><{$smarty.const._MD_MINIAMAZON_TITLE}></td>
	<td class="even">
		<{if $dpurl}>
			<a href="<{$dpurl}>" target="_blank"><{$title}></a>
		<{else}>
			<{$title}>
		<{/if}>
		<{if $requery && ($title!=$title2 || $dpurl!=$dpurl2)}><div class="maRequery"><a href="<{$dpurl2}>" target="_blank"><{$title2}></a>&nbsp;<{$smarty.const._MD_MINIAMAZON_REQUERY}></div><{/if}>
		<{if $isadult}>
			<div style="color:#F00;"><{$smarty.const._MD_MINIAMAZON_ISADULT}></div>
		<{/if}>
	</td></tr>
	<tr><td class="head"><{$smarty.const._MD_MINIAMAZON_PGROUP}></td><td class="even"><{$pgroup}></td></tr>
	<tr><td class="head"><{$smarty.const._IMAGE}></td>
	<td class="even">
		<{if $img_m}>
			<{$img_m}><br />
			<img src="<{$img_m}>" alt="<{$title}>" />
		<{else}>
			&nbsp;
		<{/if}>
		<{if $requery && $img_m!=$img_m2}><div class="maRequery"><img src="<{$img_m2}>" alt="<{$title2}>" />&nbsp;<{$smarty.const._MD_MINIAMAZON_REQUERY}></div><{/if}>
		<{if $img_m_url}>
			<br />
			<hr />
			<{$img_m_url}><br />
			<img src="<{$img_m_url}>" alt="<{$title}>" />
		<{/if}>
	</td></tr>
	<tr><td class="head"><{$smarty.const._MD_MINIAMAZON_CREATOR}></td>
	<td class="even"><{$creator}>
		<{if $requery && $creator!=$creator2}><div class="maRequery"><{$creator2}></div><{/if}>
	</td></tr>
	<tr><td class="head"><{$smarty.const._MD_MINIAMAZON_MANUFACTURER}></td>
	<td class="even"><{$manufacturer}>
		<{if $requery && $manufacturer!=$manufacturer2}><div class="maRequery"><{$manufacturer2}></div><{/if}>
	</td></tr>
	<tr><td class="head"><{$smarty.const._MD_MINIAMAZON_CAT}></td><td class="even"><{$catsel}></td></tr>
	<tr><td class="head"><{$smarty.const._COMMENTS}></td><td class="even"><{$desc}></td></tr>

	<{if $edit}>
		<tr><td class="head"><{$smarty.const._MD_MINIAMAZON_REGDATE}>&nbsp;<{$regdate}></td><td class="even"><input type="checkbox" name="update" value="1" >&nbsp;<{$smarty.const._MD_MINIAMAZON_UPDATE}></td></tr>
	<{/if}>

	<tr><td class="head">&nbsp;</td><td class="foot">
		<{if !$xoops_isuser}>
			<input type="button" value="<{$smarty.const._REGISTER}>" onclick="f2.chk.value='<{$chker}>';submit();">
		<{else}>
			<input type="submit" name="newItem" value="<{$smarty.const._REGISTER}>">
		<{/if}>&nbsp;
		<{if $edit}>
			<input type="submit" name="requery" value="<{$smarty.const._MD_MINIAMAZON_REQUERY}>">
		  <{if $deleteperm}>
		    <input type="submit" name="conf_delete" value="<{$smarty.const._DELETE}>">
		  <{/if}>
		<{/if}>
		<{if !$xoops_isuser}><input type="hidden" name="chk" value="maps"><input type="hidden" name="newItem" value="yes"><{/if}>
	</td></tr>
	</table>

	<input type="hidden" name="asin" value="<{$asin_no}>">


	<{if $edit}>
		<input type="hidden" name="lid" value="<{$lid}>">
	<{/if}>
	<{if $requery}>
		<input type="hidden" name="REQ" value="1">
	<{/if}>

	<{$gt}>
	</form>
  <{else}>
    <div style="text-align:center;color:#F00;"><{$smarty.const._MD_MINIAMAZON_NOMATCH}></div>
  <{/if}>
<{/if}>

<div id="maPerm">
	<img src="<{$myurl}>/images/<{if $postperm}>ok<{else}>ng<{/if}>.gif" />
		<{$smarty.const._MD_MINIAMAZON_POSTPERM}><br />
	<img src="<{$myurl}>/images/<{if $post_certifi}>ok<{else}>ng<{/if}>.gif" />
		<{$smarty.const._MD_MINIAMAZON_POST_CERTIFI}><br />
	<img src="<{$myurl}>/images/<{if $editperm}>ok<{else}>ng<{/if}>.gif" />
		<{$smarty.const._MD_MINIAMAZON_EDITPERM}><br />
	<img src="<{$myurl}>/images/<{if $edit_certifi}>ok<{else}>ng<{/if}>.gif" />
		<{$smarty.const._MD_MINIAMAZON_EDIT_CERTIFI}><br />
</div>

<{include file="db:`$mydirname`_footer.html"}>

</div>


